package com.aifund.admin.controller;

import com.aifund.admin.entity.form.robot.RobotListForm;
import com.aifund.admin.entity.vo.PageResult;
import com.aifund.admin.entity.vo.robot.RobotPageVo;
import com.aifund.admin.service.RobotService;
import com.aifund.common.entity.AiRobot;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/robot")
public class RobotController {

    @Autowired
    RobotService robotService;

    @GetMapping("/robotList")
    PageResult<RobotPageVo> robotList(RobotListForm form){
        return robotService.robotList(form);
    }

}
